package com.itheima.day816.demo02;

public class Demo {
    public static void main(String[] args) {
        Student student = new Student();
        student.name = "张三";
        student.age = 23;
        student.school = "德玛西亚";
        System.out.println(student.name + ";" + student.age + "," + student.school);

        Student student1 = new Student();
        student1.name = "李四";
        student1.age = 24;
        System.out.println(student1.name + ";" + student1.age + "," + student1.school);

        //多了一种调用方式. 推荐使用类名.静态成员方式调用
        System.out.println(Student.school);
        Student.method();

        System.out.println(student.school);
        System.out.println(student1.school);

        student.method();
        student1.method();
    }
}
